package com.bigbigrain.jiagou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description:
 * @author: B1gB1gRA1n
 * @create: 2020-4-17 11:48
 **/
@Controller
public class IndexController {
    @RequestMapping("/index")
    public String index(@RequestParam(value = "jb",required = false) String jb, Model model){
        model.addAttribute("jb", jb);
        System.out.println(jb);
        return "index";
    }
    @RequestMapping("/toUpload")
    public String toUpload(){
        return "upload";
    }
}
